import { getDetList } from "@/api/api";
export default {
  name: 'prodetail',
  components: {}, 
  props: [],
  data () {
    return {
      tableData:[],
     
   
    }
  },
  computed: {

  },
  mounted () {

  },
  created(){
    this._getDetList()
    
  },
  methods: {
    objectSpanMethod({ row, column, rowIndex, columnIndex }) {
      if (columnIndex === 0) {
        if (rowIndex % 5 === 0) {
          return {
            rowspan: 5,
            colspan: 1
          };
        } else {
          return {
            rowspan: 0,
            colspan: 0
          };
        }
      }
    },
    _getDetList(){
      getDetList().then(res=>{
        console.log(res.data)
        this.tableData=res.data
      })
    }
  },

  

}
